﻿using Abp.Application.Services;
using FwProject.Com.Dto;
using FwProject.ShopApplication;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace FwProject.Com
{
    /// <summary>
    ///规格设置
    /// </summary>
    public interface ISpceAppService: IApplicationService
    {
        /// <summary>
        /// 获取规格对象
        /// </summary>
        /// <param name="page">页数</param>
        /// <param name="limit">条数</param>
        /// <param name="keyword">关键词</param>
        /// <returns></returns>
        Task<LayerDataBaseDto> GetSpceLayerDataAsync(int page, int limit, string keyword);
        /// <summary>
        /// 获取一个对象
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<SpceEnterDto> GetEnterDtoAsync(Guid id);
        /// <summary>
        /// 创建一个对象
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<Guid> CreateAsync(SpceEnterDto input);
        /// <summary>
        /// 修改一个对象
        /// </summary>
        /// <param name="id"></param>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<Guid> ModifyAsync(Guid id, SpceEnterDto input);
        /// <summary>
        /// 删除一个对象
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteAsync(Guid id);
    }
}
